
<%@page import="com.crossriver.crgis.database.service.TransactionsLocalServiceUtil"%>
<%@page import="com.crossriver.crgis.database.model.Transactions"%>
<%@ include file="/init.jsp"%>

<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.liferay.portal.kernel.util.PrettyDateFormat"%>


<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>

<portlet:defineObjects />

<%
Transactions transaction = (Transactions) request.getAttribute("transaction");
%>
<div id="main">
	<h1> Transactions History &raquo; Transaction Details</h1>
	<div class="content"> 
	
		<portlet:actionURL name="deleteMessage" var="deleteMessage">
		<portlet:param name="msgId" value="<%%>" />
		</portlet:actionURL>
		
		<portlet:renderURL var="backUrl">
			<portlet:param name="jspPage" value="/html/transactions/view.jsp" />
		</portlet:renderURL>
		
		<aui:layout cssClass="test">
			<aui:column>
				<aui:a href="<%= backUrl.toString() %>"><liferay-ui:icon src="${renderRequest.contextPath}/images/back.png" message="Back"/></aui:a>
			</aui:column>	
		</aui:layout>	
		<hr>
		
		<aui:layout cssClass="test">
			<aui:column cssClass="bigtxt">
				Transaction Details
			</aui:column>	
		</aui:layout>	
    
		     
    <table id="transdetails" width="100%">
			<tr>
				<td>Application Type:</td>
			  <td class="tdet"><%= transaction.getApplicationType() %></td>
			</tr>
			<tr>
				<td>Transaction Reference:</td>
				<td class="tdet"><%=transaction.getTransactionRef()  %></td>
			</tr>
			<tr>
				<td>Payment Type:</td>
				<td class="tdet"><%=transaction.getPaymentType()  %></td>
			</tr>
			<tr>
				<td>Transaction No:</td>
				<td class="tdet"><%= transaction.getTransactionNo().toUpperCase() %></td>
			</tr>
			<tr>
				<td>Amount Paid:</td>
				<td class="tdet">&#8358;<%= transaction.getAmount() %></td>
			</tr>
			<tr>
				<td>Client ID:</td>
				<td class="tdet"><%=transaction.getUserId() %></td>
			</tr>
			<tr>
     		<td>Date of Transaction:</td>
       	<td class="tdet"><%=transaction.getPaymentDate() %></td>
			</tr>
			<tr>
      		<td>Payment Reference:</td>
      		<td class="tdet"><%= transaction.getPayRef()   %></td>
			</tr>
			
			<tr>
      		<td>Return Reference:</td>
      		<td class="tdet"><%= transaction.getRetRef()   %></td>
			</tr>			
			
		<tr>
     		<td>Response:</td>
       		<td class="tdet"><%=transaction.getResponseDescription() %></td>
		</tr>
		<tr>
     		<td>Status:</td>
       		<td class="tdet"><%=transaction.getStatus() %></td>
		</tr>

  	</table>		
		
		<hr>            
		<aui:layout cssClass="test">
			<aui:column>
				<aui:a href="<%= backUrl.toString() %>"><liferay-ui:icon src="${renderRequest.contextPath}/images/back.png" message="Back"/></aui:a>
			</aui:column>	
		</aui:layout>	
    
    <p>For more information on Land Allocation, Recertification, LIS &amp; GIS contact us via the following:<br><br> 
		Customer Relations Unit, CRGIS,<br>
		<img src="${renderRequest.contextPath}/images/mail.jpg" align="absmiddle">admin@crgis.com.ng<br>  
   	<img src="${renderRequest.contextPath}/images/tel.jpg" align="absmiddle"> +234 (02) 7689908, 7689909 </p>   
   	
<!--                 	<h3></h3><br><br> -->
<%--                     <portlet:actionURL name="deleteMessage" var="deleteMessage"> --%>
<%-- 						<portlet:param name="msgId" value="<%%>" /> --%>
<%-- 					</portlet:actionURL> --%>
					
				                    
<%-- 				    <portlet:renderURL var="backUrl"> --%>
<%-- 						<portlet:param name="jspPage" value="/html/transactions/view.jsp" /> --%>
<%-- 					</portlet:renderURL> --%>
					
					
<!-- 					<hr> -->
<%-- 					<aui:layout> --%>
					
<%-- 						<aui:column columnWidth="33"> --%>
<%-- 							<aui:a href="<%= backUrl.toString() %>" label="Back"></aui:a> --%>
<%-- 						</aui:column> --%>
						
<%-- 					</aui:layout>	   --%>
<!-- 					<hr>          -->
<!--                    <br> -->
<!--                    Transaction Details onoch -->
<!--                 <table cellpadding="2" cellspacing="0" width="50%" border="thin solid blue"> -->
<!--                     	<tbody> -->
<!--                     	<tr> -->
<!--                         	<td width="25%">Account No:</td> -->
<%--                             <td width="75%"><span class="msg"><%= transaction.getAccountNo()   %></span></td> --%>
<!--                        	</tr> -->
<!--                         <tr> -->
<!--                         	<td>Bank Name:</td> -->
<%--                             <td><span class="msg"><%=transaction.getBankName()  %></span></td> --%>
<!--                        	</tr> -->
<!--                         <tr> -->
<!--                         	<td>Application Type:</td> -->
<%--                             <td><span class="msg"><%= transaction.getApplicationType() %></span></td> --%>
<!--                        	</tr> -->
<!--                         <tr> -->
<!--                         	<td>Batch ID:</td> -->
<%--                             <td><span class="msg"><%= transaction.getBatchId() %></span></td> --%>
<!-- 						</tr> -->
						
<!-- 						<tr> -->
<!--                         	<td width="25%">Invoice No:</td> -->
<%--                             <td width="75%"><span class="msg"><%= transaction.getInvoiceNo()   %></span></td> --%>
<!--                        	</tr> -->
<!--                         <tr> -->
<!--                         	<td>Payment Type:</td> -->
<%--                             <td><span class="msg"><%=transaction.getPaymentType()  %></span></td> --%>
<!--                        	</tr> -->
<!--                         <tr> -->
<!--                         	<td>Transaction No:</td> -->
<%--                             <td><span class="msg"><%= transaction.getTransactionNo() %></span></td> --%>
<!--                        	</tr> -->
<!--                        	<tr> -->
<!--                         	<td>Amount Paid:</td> -->
<%--                             <td><span class="msg">&#8358;<%= transaction.getPaidSum() %></span></td> --%>
<!--                        	</tr> -->
<!--                         <tr> -->
<!--                         	<td>Client ID:</td> -->
<%--                             <td><span class="msg"><%=transaction.getUserId() %></span></td> --%>
<!-- 						</tr> -->
<!-- 						<tr> -->
<!--                         	<td>Date of Transaction:</td> -->
<%--                             <td><span class="msg"><%=transaction.getPaymentDate() %></span></td> --%>
<!-- 						</tr> -->
<!--                     </tbody> -->
<!--               </table> -->
                   
                   
<!--                     <br> -->
<!--   					<hr> -->
<%-- 					<aui:layout> --%>
					
<%-- 						<aui:column columnWidth="33"> --%>
<%-- 							<aui:a href="<%= backUrl.toString() %>" label="Back"></aui:a> --%>
<%-- 						</aui:column> --%>
						
<%-- 					</aui:layout>	   --%>
<!-- 					<hr>  -->
<!--                     <br><br><br> -->
<!--                     <p>For more information, Contact us; <br> -->
<!--                     <img src="images/email.jpg" align="absmiddle">admin@crgis.com.ng<br>   -->
<!--                     <img src="images/tel.jpg" align="absmiddle"> +234 (02) 7689908, 7689909</p> -->
<!--       		  </div> -->
                    
                   
	</div>
</div>


              